package com.uestc.soft.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class RI {
    private Integer id;
    private String level;
    private String type;
    private String proCommand;
    private String affectedHost;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")    // 这里的格式一定要区分大小写
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp lastTime;
    private String proState;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProCommand() {
        return proCommand;
    }

    public void setProCommand(String proCommand) {
        this.proCommand = proCommand;
    }

    public String getAffectedHost() {
        return affectedHost;
    }

    public void setAffectedHost(String affectedHost) {
        this.affectedHost = affectedHost;
    }

    public Timestamp getLastTime() {
        return lastTime;
    }

    public void setLastTime(Timestamp lastTime) {
        this.lastTime = lastTime;
    }

    public String getProState() {
        return proState;
    }

    public void setProState(String proState) {
        this.proState = proState;
    }
}
